.imbox {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.imboxItem {
  top: 50%;
  left: 50%;
  margin-left: -433px;
  margin-top: -300px;
  z-index: 10001;
  display: block;
  position: fixed;
  _position: absolute;
  box-shadow: 2px 2px 4px #a0a0a0, -2px -2px 4px #a0a0a0;
}

.web__tools dl {
  display: none;
}

.ChatPage .main .rightBox {
  border-left: 1px solid #f1f1f1;
}

.rightBox .item {
  margin-bottom: 10px;
}

.wrapper span {
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  position: relative;
  line-height: 1.5;
  word-wrap: break-word;
  word-break: break-all;
}

.body {
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: #2e2f3d;
  // margin-top: -16px;
  padding: 0;
}

.base {
  min-height: 535px;
  padding-bottom: 0 !important;
  flex-direction: column;
}

.body .chat-box {
  height: 100%;
  width: 100%;
  background: #ffffff;
}

.chat-box .chat-box-top {
  width: 100%;
  height: 53px;
  padding-left: 15px;
  box-sizing: border-box;
  background: #f7f8fa;
  border-bottom: 1px solid #eceef0;
  opacity: 1;
  border-radius: 5px 5px 0 0;
  font-size: 16px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  line-height: 53px;
  color: #333333;
  opacity: 1;
  .user-name {
    position: absolute;
    left: 310px;
    white-space: nowrap;
  }
}

.chat-box .chat-box-main {
  display: flex;
  height: 100%;
}

/* 左侧用户名和商家栏样式 */
.body .chat-box .chat-box-left {
  overflow:auto;
  width: 300px;
  height: 100%;
  background: #ffffff;
  opacity: 1;
  border-right: 1px solid #eceef0;
  flex-shrink: 0;
  .empty-contacts{
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    margin-top: -80px;
    .empty-img{
      width: 120px;
      height: 120px;
    }
    .empty-txt{
      margin-top: 12px;
      font-size: 14px;
      color: #666;
    }
  }
}

.chat-box-left .shop-list {
  padding: 0;
  margin: 0;
}

.chat-box-left .shop-list .shop-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.chat-box-left .shop-list .shop-item:hover {
  background-color: #d0e9ff;
}

.chat-box-left .shop-item img {
  width: 36px;
  height: 36px;
  margin: 12px 12px 12px 15px;
}

.chat-box-left .shop-item .shop-info {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.chat-box-left .shop-item .shop-info .shop-info-name {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  line-height: 20px;
  color: #333333;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.shop-info-name .name{
  width: 80%;
  color: #333333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.shop-info-name .tips{
  height: 16px;
  line-height: 16px;
  border-radius: 16px;
  padding: 0 5px;
  margin-right: 5px;
  box-sizing: border-box;
  color: #fff;
  font-size: 10px;
  content: " ";
  background: #fc1b35;
}

.chat-box-left .shop-item .shop-info .shop-info-icon {
  width: 110px;
  margin-top: 5px;
  font-size: 12px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #a1a6af;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.chat-box-left .shop-item .shop-info .ye {
  background-color: #ffc267;
}

/* 右侧主要信息聊天栏 */
.body .chat-box .chat-box-right {
  width: 100%;
  height: 100%;
  // height: calc(100% - 53px);

}

.chat-box-right .shop-name-tittle {
  line-height: 20px;
  padding: 20px 0 21px 21px;
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #333333;
  border-bottom: 1px solid #ebedf0;
}

.chat-box-right .im-box {
  display: flex;
  position: relative;
  height: 100%;
}

.chat-box-right .im-main {
  width: 100%;
  height: 100%;
  border-right: 1px solid #ebedf0;
}

.im-main .chat-main-form {
  position: relative;
  z-index: 800;
  display: flex;
  position: relative;
  z-index: 800;
  flex-direction: column;
  height: 100%;
}

.im-main .chat-main-form .display-infor {
  height: 70%;
  padding-top: 15px;
  overflow-y: auto;
  box-sizing: border-box;
}

.reply {
  width: 100%;
  height: 23%;
  border-top: 1px solid #ebedf0;
  position: relative;
}
.im-main .chat-main-form .reply .small-box {
  display: flex;
}
.im-main .chat-main-form .reply .small-box .customerService {
  margin: 17px 0 8px 22px;
  cursor: pointer;
}
.im-main .chat-main-form .reply .upload {
  width: 22px;
  height: 18px;
  background-image: url("@/assets/img/upload.png");
  margin: 17px 0 8px 22px;
  cursor: pointer;
}

.im-main .chat-main-form .reply .reply-area textarea {
  margin-left: 12px;
  border: none;
  resize: none;
  outline: none;
  box-shadow: none;
  width: 98%;
  height: 100%;
}

.im-main .chat-main-form .reply .send {
  // width: 62px;
  // height: 26px;
  // line-height: 26px;
  // position: absolute;
  // right: 20px;
  // text-align: center;
  // background: #155bd4;
  // color: #fff;
  // cursor: pointer;
  // opacity: 1;
  width: 62px;
  height: 26px;
  line-height: 26px;
  position: absolute;
  bottom: 10px;
  right: 20px;
  bottom: 0;
  text-align: center;
  background: #155bd4;
  color: #fff;
  cursor: pointer;
  opacity: 1;
}

.flex-wrap {
  flex: auto;
}

/* 中间时间样式 */
.topTime {
  text-align: center;
  margin-bottom: 15px;
  height: 28px;
  font-size: 10px;
  font-family: PingFang SC;
  font-weight: 400;
  line-height: 28px;
  color: #aaaaaa;
  opacity: 1;
}

/* 右侧正在查询和我的订单 */
.order-column {
  flex: 1;
}

.order-column .tab-switch {
  display: flex;
  height: 37px;
}

.order-column .inquiry,
.order-column .my-order {
  flex: 1;
  text-align: center;
  line-height: 37px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 1px solid #eceef0;
  background: #f8f8f8;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #999999;
  opacity: 1;
}

.order-column .active {
  color: #197ce0;
  background-color: #fff;
  border: none;
}

.order-column .browse {
  width: 100%;
  border-bottom: 1px solid #eceef0;
  text-align: center;
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  line-height: 14px;
  color: #666666;
  opacity: 1;
}

.order-column .text {
  width: 60px;
  padding: 11px 0 5px 0px;
  margin: auto;
  border-bottom: 2px solid #197ce0;
}

/* 订单商品详情 */
.recent-list,
.order-list {
  padding-left: 12px;
  height: 663px;
  overflow-y: auto;
}

.prod-item {
  display: flex;
  padding: 18px 0;
  border-bottom: 1px solid #eceef0;
  border-top: 1px solid #eceef0;
  margin-top: -1px;
}

.order-column .order-list .botl {
  border-bottom: 9px solid #faf9f9;
  flex-direction: column;
  padding-bottom: 0;
}

.prod-item .prod-detail {
  padding-right: 12px;
  flex: 1;
}

.prod-item img {
  width: 60px;
  height: 60px;
  margin-right: 12px;
}

.prod-item .prod-name {
  font-size: 12px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  line-height: 18px;
  color: #333333;
  opacity: 1;
  word-break: break-word;
}

.prod-item .interval {
  width: 100%;
  height: 10px;
  background: #faf9f9;
  opacity: 1;
}

.prod-b {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.prod-b .prod-price {
  margin-top: 5px;
  font-size: 12px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  line-height: 18px;
  color: #197ce0;
  opacity: 1;
}

.prod-b .prod-send {
  width: 62px;
  height: 26px;
  line-height: 26px;
  position: absolute;
  right: 20px;
  bottom: 0;
  text-align: center;
  background: #155bd4;
  color: #fff;
  cursor: pointer;
  opacity: 1;
}

.prod-b .prod-send:hover {
  border: 1px solid #197ce0;
  color: #197ce0;
}

/* 我的订单样式 */
.order-box {
  display: flex;
}

.order-number {
  padding-bottom: 6px;
  border-bottom: 1px solid #ebedf0;
  margin-bottom: 12px;
}

.order-box .number,
.order-box .time {
  font-size: 12px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  line-height: 14px;
  color: #666666;
  opacity: 1;
}

.order-number .number {
  display: inline-block;
  margin-right: 16px;
}

.order-list .bottom-tips {
  text-align: center;
  padding-top: 20px;
}

// 图片上传
.search-btnn {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.imgUp {
  position: absolute;
  left: 22px;
  top: 18px;
}
.imgUp:hover {
  background-image: url("@/assets/img/upload-on.png");
  cursor: pointer;
}

/* 商品链接样式 */
/* 商品链接样式 */
.prod-link {
  width: 345px;
  background: #ffffff;
  border: 1px solid #f2f2f2;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 15px 13px 0px 12px;
  cursor: pointer;

  .prod-number {
    margin-top: -7px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eceef0;
    padding-bottom: 5px;

    &:hover {
      color: #9c1712;
    }
  }
}
.link-prod {
  display: flex;
  padding-bottom: 9px;
  border-bottom: 1px solid #eeeeee;
  cursor: pointer;

  .prod-img {
    width: 88px !important;
    height: 88px !important;
  }

  .link-detail {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 1px;
    margin-left: 13px;
  }

  .prod-price {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-family: PingFang SC;
    padding-bottom: 5px;
    font-weight: 400;
    color: #999999;
    opacity: 1;
    word-break: break-all;
  }

  .payment-amount {
    flex: 1;
  }

  .prod-status {
    width: 35%;
    text-align: end;
  }
}
// .link-prod {
//   width: 65%;
//   border: 1px solid #f2f2f2;
//   box-sizing: border-box;
//   margin-top: 6px;
//   padding: 15px 0 18px 12px;
//   cursor: pointer;
// }
.prod-box {
  display: flex;
}

.link-prod .link-detail {
  display: flex;
  width: 70%;
  flex-direction: column;
  justify-content: space-between;
  margin: 15px;
  box-sizing: border-box;
}
.link-detail .prod-name {
  font-size: 10px;
  font-family: PingFang SC;
  padding-top: 10px;
  font-weight: 400;
  color: #333333;
  opacity: 1;
  word-break: break-word;
}
.link-prod .prod-price {
  margin-top: 10px;
  font-size: 10px;
  font-family: PingFang SC;
  font-weight: 400;
  color: #999999;
  opacity: 1;
  display: flex;
  justify-content: space-between;
  word-break: break-all;
}
.link-prod .payment-amount {
  flex: 1;
}
.link-prod .prod-status {
  width: 35%;
  text-align: end;
}
.img-view {
  position: inherit;
  width: 100%;
  height: 100%;
}
/*遮罩层样式*/
.img-layer {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  overflow: hidden;
}
/*不限制图片大小，实现居中*/
.img-layer .img {
  max-width: 50%;
  max-height: 50%;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: 1000;
  cursor: pointer;
}
.img-layer img {
  width: 100%;
  height: 100%;
  cursor: pointer;
  object-fit: contain
}
/* 点击加载更多 */
.display-infor .more {
  font-size: 12px;
  color: #5a606b;
  text-align: center;
  margin-bottom: 20px;
  cursor: pointer;
  -moz-user-select: none; /*火狐*/
  -webkit-user-select: none; /*webkit浏览器*/
  -ms-user-select: none; /*IE10*/
  -khtml-user-select: none; /*早期浏览器*/
  user-select: none;
}

.unread{
  font-size: 12px;
  color: #AAAAAA;
  margin-right: 9px;
}
.left .message-box{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.prods-select-body {
  height: 430px;
  overflow: auto;
  .username {
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #f6f7fa;
  }
  .service-list {
    position: relative;
    height: 50px;
    border-bottom: 1px solid #ededed;
  }
  .nick-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
   }
  .el-radio {
    position: relative;
    height: 50px;
    margin-left: 30px;
  }
  .no-data {
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 16px;
  }
}

// 新消息过来 背景颜色 以及 选中的背景颜色
.newMessage{
  background-color: #FFF9cd;
}
.changeUser{
  background-color: #D0E9FF;
}

/* 放大图片的右侧关闭图标 */
.bubble :deep(.el-image-viewer__close){
  color:red !important
}

.unread-box {
  position: absolute;
  right: 8px;
  top: -5px;
  height: 16px;
  margin-top: 5px;
}

.unread-box .number {
  background: #fff;
  font-size: 0;
}

.unread-box .number {
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 16px;
  padding: 0 5px;
  box-sizing: border-box;
  color: #fff;
  font-size: 10px;
  content: " ";
  background: #fc1b35;
}
.message-list {
  width: 100%;
  height: 100%;
  overflow: auto;
  .avatar {
    img {
      width: 40px;
		  height: 40px;
    }
  }
}
.message-content{
  display: flex;
  justify-content: flex-end;
  position: relative;
  width: 100%;
}
.message-left {
	display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 10px;
  .message-content{
    justify-content: flex-start;
  }
  .bubble-left{
    margin-left: 10px;
    max-width: 70%;
    .bubble-content {
      max-width: 100%;
      font-size: 14px;
      min-height: 42px;
      padding: 12px 14px 11px 16px;
      word-break: break-word;
      box-sizing: border-box;
      background-color: #f7f8fa;
      color: #000;
      opacity: 1;
      border-radius: 0 10px 10px;
    }
  }
	.bubble {
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 0 10px 10px 10px;
		padding: 10px;
		color: black;

		.text {
			display: flex;
			text-align: left;
			font-size: 14px;
			max-width: 250px;
			word-break: break-all;
      flex-direction: column;
		}
	}

	.status {
		font-size: 12px;
		color: #d0e9ff;
		margin-left: 10px;
		margin-bottom: 5px;
		display: flex;
		align-items: center;
	}
}
.message.right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
	justify-content: flex-end;
  margin:0 20px;
  .username{
    position: absolute;
    top: 0;
    right: 4px;
    margin-right: 50px;
    margin-bottom: 2px;
  }
  .divider-box{
    width: 93%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    .divider{
      flex: 1;
      height: 1px;
      background-color: #ccc;
    }
    .divider-txt{
      max-width: 80%;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
      font-size: 12px;
      color: #999;
      padding: 0 12px;
    }
  }
  .read-status{
    font-size: 12px;
    color: #aaa;
    margin-right: 9px;
    display: flex;
    align-items: center;
  }
  .bubble-right {
    margin: 20px 15px;
    max-width: 70%;
    .bubble-content {
      max-width: 100%;
      font-size: 14px;
      min-height: 42px;
      padding: 12px 14px 11px 16px;
      word-break: break-word;
      box-sizing: border-box;
      background-color: #d0e9ff;
      color: #000;
      opacity: 1;
      border-radius: 10px 0 10px 10px;
      :deep(.el-button) {
        padding-left: 0px;
        margin-left: 0px;
        white-space: normal;
        word-break: break-all;
        word-wrap: break-word;
        text-align: start;
      }
    }
  }
  .bubble-left{
    margin: 20px 15px;
    .bubble-content {
      max-width: 100%;
      font-size: 14px;
      min-height: 42px;
      padding: 12px 14px 11px 16px;
      word-break: break-word;
      box-sizing: border-box;
      background-color: #f7f8fa;
      color: #000;
      opacity: 1;
      border-radius: 0 10px 10px;
      margin-top: 20px;
    }
  }
}
.longimage {
  width: 100px;
  height: 100px;
}
